import {BaseCommand} from "../../../v-cairn/BaseCommand.ts";

export class LoginCompleteCommand extends BaseCommand {

    static count = 0;

    execute() {
        LoginCompleteCommand.count++;
        console.log('----ddd');
        this.checkComplete();
    }

    checkComplete() {
        console.log(LoginCompleteCommand.count, '0000');
        if (LoginCompleteCommand.count === 2) {
            alert('登录成功');
        }
    }
}